package com.example.controller;

import com.example.pojo.SysEmp;
import com.example.service.SysEmpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;
import java.util.Map;

@RequestMapping("/emp")
@Controller
public class EmpController {
    @Autowired
    private SysEmpService service;

    @RequestMapping("/add")
    public String add(Map map) {
        List<SysEmp> list = service.list();
        map.put("empList", list);
        return "/system/user/useradd";
    }
}
